Repository navigation
feat(server): Unified Grant Resolution - #183
Merged
mckaragoz merged 4 commits intoNov 30, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev #183 +/- ##
==========================================
+ Coverage 88.17% 88.32% +0.14%
==========================================
Files 626 620 -6
Lines 21799 21697 -102
Branches 2675 2643 -32
==========================================
- Hits 19221 19163 -58
+ Misses 1645 1613 -32
+ Partials 933 921 -12
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #182
Unifies authentication credential resolution across UltimateAuth by making effective authentication mode and
GrantDeliverythe single source of truth.This removes legacy session resolver precedence, eliminates implicit credential fallback, and establishes a deterministic resolution model across server authentication, validation, refresh, and Resource API integrations.
What's Changed
Unified Credential Resolution
Security and Configuration Consistency
Authorization: Bearerfor incoming access tokens while allowing separate response header configuration.Legacy Architecture Cleanup
SessionResolutionoptions, validators, and ordered resolver infrastructure.PrimaryCredentialpolicy and resolver.Resource API and Refresh Compatibility
X-Refresh-Tokenprecedence and fallback behavior.Tests and Documentation
Breaking Changes
UAuthServerOptions.SessionResolutionand its related resolver configuration have been removed.UAuthServerOptions.PrimaryCredentialand its UI/API credential selection policy have been removed.X-Refresh-Tokenis no longer implicitly accepted; applications must explicitly configure it as the refresh grant header.GrantDeliverysettings.Applications using the built-in default cookie and access-token delivery conventions generally require fewer changes.